package com.inviteOrder.state;

import com.inviteOrder.strategy.RewardStrategyContext;
import lombok.Data;

/**
 * @author 大忽悠
 * @create 2022/10/17 10:49
 */
@Data
public class RewardStateContext {
    private RewardStrategyContext rewardStrategyContext=new RewardStrategyContext();
    private RewardState rewardState;

    public Boolean resultFlag(){
        return rewardState.getResultFlag();
    }

    public void echo(Request request){
        rewardState.doReward(this,request);
    }
}
